<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Swiper demo</title>
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"
    />
    <!-- Link Swiper's CSS -->
    <link
      rel="stylesheet"
      href="./css/swiper-bundle.min.css"
    />
    <link rel="stylesheet" href="./css/pc-movie-douban.css">

    <!-- Demo styles -->
    <style>
      html,
      body {
        position: relative;
        height: 100%;
      }

      body {
        background: #eee;
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
        font-size: 14px;
        color: #000;
        margin: 0;
        padding: 0;
      }

      .swiper {
        width: 100%;
        height: 100%;
      }

      .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;

        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
      }

      .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    </style>
  </head>

  <body>
    <div id="wrapper">
        <div class="content">
            <div class="grid-16-8">
                <div class="article">
                    <!-- 正在热映 -->
                    <div id="screening" class="screening">
                        <div class="hd">
                            <div class="slide_control">
                                <a href="#" class="btn_prev"></a>
                                <a href="#" class="btn_next"></a>
                            </div>
                            <div class="slide_tip"></div>
                            <h2>
                                正在热映
                                <span><a href="#">全部正在热映»</a></span>
                                <span><a href="#">即将上映»</a></span>
                            </h2>
                        </div>
                        <div class="screening_bd">
                          <div class="swiper screeningSwiper ui_slide_content">
                            <div class="swiper-wrapper">
                              <div class="swiper-slide">
                                <div class="ui_slide_item">
                                  <div class="poster">
                                    <a href="#"><img src="./img/hot01-还是觉得你最好.webp" alt=""></a>
                                  </div>
                                  <div class="title">
                                    <a href="#">还是觉得你最好</a>
                                  </div>
                                  <div class="rating">
                                    <span class="rating_star"></span>
                                    <span class="subject_rate">7.6</span>
                                  </div>
                                  <div class="ticket_btn">
                                    <span><a href="#">选座购票</a></span>
                                  </div>
                                </div>
                              </div>
                              <div class="swiper-slide">Slide 2</div>
                              <div class="swiper-slide">Slide 3</div>
                              <div class="swiper-slide">Slide 4</div>
                            </div>
                          </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    

    <!-- Swiper JS -->
    <script src="./lib/swiper-bundle.min.js"></script>

    <!-- Initialize Swiper -->
    <script>
      var swiper = new Swiper(".screeningSwiper", {
        spaceBetween: 0,
        speed:1500,
        loop: true,
        pagination: {
          el: ".slide_tip",
          type: "fraction",
        },
        navigation: {
          nextEl: ".btn_next",
          prevEl: ".btn_prev",
        },
      });
    </script>
  </body>
</html>
